package org.example.mallweb.mallservice.service.serviceimpl;


import org.example.mallcommon.projo.Category;
import org.example.mallweb.mallservice.mybatiscommon.category.CategoryMapper;
import org.example.mallweb.mallservice.service.CategoryService;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

/**
 * @author 韩先楚
 */
@Service
public class CategoryServiceImpl implements CategoryService {

    @Resource
    private CategoryMapper categoryMapper;

    /**
     * 获取所有分类
     * @return 分类列表
     */
    @Override
    public List<Category> list() {
     return   categoryMapper.selectList(null);

    }
}
